﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MainContent.ascx.cs" Inherits="_5ChickDeal.UserControl.MainContent" %>

<asp:HiddenField ID="BanDuoc" Value="Visible" runat="server" />
<asp:FormView ID="formview1" runat="server">
    <ItemTemplate>
<div class="BoxBig">

        <div class="ContentT">
        </div>
        <div class="ContentC">

            <div class="DealsToday">
                
                
                <div class="Deals">
                
                    <div class="Img" >
                   
                    <div runat="server" ID="Img" class="Img" 
                            style='<%# "background:url("+"Resource/ImageDeals/"+Eval("hinh")+")" %>'>
                    
                     </div>
                   
                    </div>
                 
                    <div class="DealsInfo">
                        
                            <h2 id="H1" runat="server">
                            
                                <%# Eval("ten") %>
                             
                            </h2>
                            <div class="SaleOff">
                               
                                <strong runat="server" id="giaconlai2">
                                <%# Eval("giaconlai","{0:#,##0}") %>
                                 
                                  <!--  <asp:Label ID="giaconlai" runat="server" Text='<%# Eval("giaconlai") %>'></asp:Label>-->
                               </strong><span>đ</span>
                                    <div
                                        class="Price2">
                                    </div>
                                    
                            </div>
                            <div class="RegBuy">
                                <a href="#" runat="server" id="cmPurchaseLink" name="cmPurchaseLink"> </a>
                                    
                            </div>

                            <div class="TimeDeal">
                                <div class="TimeDealC1">
                                
                                    <%#Eval("gia","{0:#,##0}") %>
                                    đ</div>
                                <div class="TimeDealC2">
                               
                                    <%# Eval("giam") %>
                                    %
                              
                                    
                                    
                                    </div>
                                <div id="countbox" class="TimeDealC3">
                                    <%# Eval("thoigianconlai") %>
                                    </div>
                            </div>

                           
                             
                            <asp:Panel class="SliderFull" ID="SliderFull" runat="server" Visible='<%# Eval("dabanduoc") %>'>
                                <img alt="fulldeals" src="../App_Themes/MainTheme/Images/fulldeal_icon.gif" width="40"
                                    height="44" align="left" title="deal on" />
                                <h4>
                                    Đã bán được
                                    <%# Eval("sophieu") %>
                                    &nbsp;phiếu</h4>
                                <p>
                                    Số lượng tối thiểu
                                    <%# Eval("soluongtoithieu")  %>
                                    </p>
                                <p>
                                  
                                    <%# Eval("thoigiandat") %>
                                  
                                    
                                 </p>

                                
                                <p>
                                    <strong>Vẫn còn mua được</strong>
                                </p>
                                
                            </asp:Panel>
                            
                            <asp:Panel class="Slider FixPng" id="SliderNotFull" runat="server" Visible='<%# Eval("banchuaduoc") %>'>
<div class="Begin">0</div>
<div class="Finish"><%#Eval("soluongtoithieu")%></div>
<p class="SliderCount">
<strong>Đã bán được <%#Eval("sophieu") %> phiếu</strong>
</p>
<div class="Track FixPng">
<div class="Face FixPng" style=width:<%#Eval("phantram")%>% runat="server">
<div class="Arrow" runat="server"></div>
</div>
</div>
<p class="On">Cần có thêm <%#Eval("canthem") %> người cùng mua để khuyến mãi có hiệu lực</p>
</asp:Panel>
                            
                            
                            
                            
                            <div class="SendFriend">
                                
                                <div>
                                    
                                    
                                    
                                   <div id="fb-root">
                                   </div>
                                   
                                    <script src="http://connect.facebook.net/en_US/all.js#appId=117890164962509&amp;xfbml=1"></script>
                                   
                                   <fb:like href="http://thanhkhanhinfo.tk" send="true" width="450" show_faces="true" font="tahoma"></fb:like>
                                </div>
                            </div>

                        </div>
                    </div>
                 
                 
                 
                </div>
            </div>
            <div class="ContentB">
            </div>
        </div>
        
        <div class="BoxBig">
            <div class="ContentT T2">

            </div>
            <div class="ContentC C2">
                <div class="FineC1 Line">
                    <h2>
                        Điểm nổi bật
					</h2>
                    <div class="Fine">
                    
                        <%# Eval("diemnoibat") %>
                  
                    </div>
                </div>
                <div class="FineC1" style="margin-left: -1px; border-left: 1px solid #CCCCCC !important">
                    <h2>
                        Điều kiện sữ dụng</h2>
                    <div class="Fine">
                    
                        <%# Eval("dieukiensudung") %>
                     
                    </div>
                </div>

            </div>
            <div class="ContentB B2">
            </div>
        </div>
        <div class="BoxBig">
            <div class="ContentT T2">
            </div>
            <div class="ContentC C2">
			
                <div class="FinePrint">

                    <h2>
                        Giới thiệu chi tiết</h2>
                    <p>
                   <%# Eval("chitiet") %>
                    </p>
                    
                </div>
                <div class="Location">
                    <h2>
                       Địa chỉ
					</h2>
                    <p>
                        
                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("hinhdiachi") %>' />
                        
                    <div class="Add">

                        <div class="Point" style="background: url(images/map-pins_v2.png) no-repeat;">
                        </div>
                        <div class="LocationInfo">
                            
                        </div>
                    </div>
                </div>
            </div>
            <div class="ContentB B2">
			
            </div>

        </div>
        
          </ItemTemplate>
</asp:FormView>  